package cn.gok.dao;

import cn.gok.pojo.Order;
import cn.gok.pojo.OrderItem;
import org.springframework.stereotype.Component;
import java.util.List;

public interface OrderMapper {
    int deleteByOrderNo(long orderNo);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByOrderNoSelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> queryAlloOrder();

    Order queryOrderbyOrderNo(long orderNo);

    int sendGoods(long orderNo);

    int orderCount();
    List<Order> selectAllOrdersByUserId(int userId);

    Order selectOrderByOrderNo(long OrderNo);
}